package debux.apps.mltr.app;

import java.util.ArrayList;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import debux.apps.mltr.connection.YoutubeConnection;
import debux.apps.mltr.model.VideoInfo;

public class VideoActivity extends Activity {
	public static final String YOUTUBE_PLAYLIST_MLTR = "ADF93E67F27565D6";
													//47C1FB98A16D9807
	ArrayList<VideoInfo> videoList;
	@Override
	public void onCreate(Bundle bundle){
		super.onCreate(bundle);
		setContentView(R.layout.video_tab_frame);
		Button button1 = (Button) findViewById(R.id.buttonCheck);
		button1.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				YoutubeConnection youtubeConnection = new YoutubeConnection();
				try {
					videoList = youtubeConnection.getClipsFromYoutubePlaylist(YOUTUBE_PLAYLIST_MLTR, 1);
				} catch (Exception e){
					e.printStackTrace();
				}
			}
		});
	}
}
